{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>营地管理 <small>营地配套设施</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/campfacility"><i class="fa fa-dashboard"></i> 营地配套设施列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 添加营地配套设施</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请设置营地配套设施信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <form class="form-horizontal" id='addfacility' role="form" action="/campfacility" method="post">
    <input type="hidden" name="logo_id" id='logo_id'>
      <h4>增加营地设施</h4>
      <div class="form-group">
        <label class="control-label col-sm-3">设施名称</label>
        <div class="col-sm-9">
          <input class="form-control" type="text" name="name" placeholder="请正确填写名称">
        </div>
      </div>
      <div class="form-group">
        <label class="control-label col-sm-3">描述</label>
        <div class="col-sm-9">
          <textarea class="form-control" type="text" name="profiles" placeholder="请正确填写名称"></textarea>
        </div>
      </div>
      
      <div class="modal-footer">
        <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
        <button type="button" id='add' class="btn btn-primary">提交</button>
      </div>
    </form>
  </div><!-- /#page-wrapper -->

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#add").click(function(){
      $("#addfacility").submit();
      });
    });
</script>
